package com.grj.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 阅读量记录表
 * @TableName blog_view_record
 */
@TableName(value ="blog_view_record")
@Data
public class BlogViewRecord implements Serializable {
    /**
     * 记录唯一ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 文章ID
     */
    private Long articleId;

    /**
     * 访问用户IP地址
     */
    private String userIp;

    /**
     * 访问时间
     */
    private Date viewTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}